<?php
$recruitment=RecruimentList();
if(mysql_num_rows($recruitment)!=0){
	while ($row_recruitment=mysql_fetch_array($recruitment)){
		ob_start();
		?>
	<a href="index.php?p=recruitmentdetail&id={id}">{Title}</a> - <span>{DatePosted}</span>
	<?php
                $full=explode(" ",$row_recruitment["date_added"]);
                $rawdate=explode("-",$full[0]);
                $newdate = $rawdate[2]."/".$rawdate[1]."/".$rawdate[0];
                $date=$full[1]." ".$newdate;
                $s= ob_get_clean();
                $s=str_replace("{id}",$row_recruitment["recruitment_id"],$s);
                $s=str_replace("{Title}",$row_recruitment["title"],$s);
                $s=str_replace("{content}",$row_recruitment["content"],$s);
                $s=str_replace("{DatePosted}",$date,$s);
                echo $s;
	?>
<?php
	}
}else{ ?>
	<?php echo "No Result!";?>
<?php
}
?>